package com.shop.shoppingmall.controller;

import com.shop.shoppingmall.entity.ShOrderAll;
import com.shop.shoppingmall.service.ShOrderAllService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (ShOrderAll)表控制层
 *
 * @author makejava
 * @since 2020-11-13 16:48:06
 */
@RestController
@RequestMapping("shOrderAll")
public class ShOrderAllController {
    /**
     * 服务对象
     */
    @Resource
    private ShOrderAllService shOrderAllService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ShOrderAll selectOne(String id) {
        return this.shOrderAllService.queryById(id);
    }

}